@import './modules/reset';
@import './modules/header';
@import './modules/footer';

body{
    background-color: #f4f5f7;
}

section{
    height: 340px;
    background-color: #fff;
    .banner img{
        height: 220px;
    }
    .nav{
        width: 1160px;
        height: 120px;
        margin: 0 auto;
        .nav-city, .nav-type, .nav-chose{
            display: flex;
            align-items: center;
        }
        .nav-city{
            height: 40px;
        }
        .nav-type{
            height: 40px;
            box-sizing: border-box;
            border-top: 1px dashed #e5e9ef;
            border-bottom: 1px dashed #e5e9ef;
        }
        .nav-chose{
            height: 40px;
        }
        .title{
            width: 90px;
            font-size: 12px;
            color: #99a2aa;
            float: left;
        }
        .city-list li:last-child{
            width: 120px;
            text-align: right;
            i{
                font-size: 12px;
            }
        }
        .nav-list ul li{
            float: left;
            font-size: 12px;
            color: #6d757a;
            width: 90px;
            cursor: pointer;
        }
        .nav-list ul li:nth-of-type(1){
            width: 140px;
        }
        .nav-list ul li.ac{
            color: #f25d8e;
        }
        .nav-list ul li:hover{
            color: #f25d8e;
        }
    }
}

main{
    .main-list{
        width: 1160px;
        min-height: 600px;
        max-height: 2430px;
        padding-bottom: 50px;
        margin: 0 auto;
        overflow: hidden;
        a:nth-of-type(2n - 1) .main-list-item{
            margin-right: 40px;
        }
        .main-list-item{
            width: 560px;
            height: 240px;
            border-radius: 10px;
            background-color: #fff;
            margin-top: 60px;
            float: left;
            position: relative;
            &-img{
                width: 175px;
                height: 233px;
                border-radius: 10px;
                overflow: hidden;
                position: absolute;
                left: 20px;
                bottom: 24px;
                img{
                    width: 100%;
                    height: 100%;
                }
            }
            &-msg{
                float: left;
                margin-left: 223px;
                & h3{
                    width: 286px;
                    height: 48px;
                    font-size: 18px;
                    color: #222222;
                    line-height: 24px;
                    margin-top: 30px;
                }
                & p:nth-of-type(1){
                    height: 17px;
                    font-size: 14px;
                    color: #999999;
                    margin-top: 19px;
                }
                & p:nth-of-type(2){
                    height: 17px;
                    font-size: 14px;
                    color: #999999;
                    margin-top: 10px;
                }
                & p:nth-of-type(3){
                    height: 24px;
                    margin-top: 40px;
                    display: flex;
                    align-items: flex-end;
                    & span:nth-of-type(1){
                        font-size: 18px;
                        line-height: 18px;
                        color: #fb7299;
                    }
                    & span:nth-of-type(2){
                        font-size: 28px;
                        line-height: 24px;
                        color: #fb7299;
                        margin-left: 4px;
                    }
                    & span:nth-of-type(3){
                        font-size: 12px;
                        line-height: 12px;
                        color: #999;
                        margin-left: 5px;
                        margin-bottom: 2px;
                    }
                    & span:nth-of-type(4){
                        font-size: 12px;
                        line-height: 16px;
                        color: #fb7299;
                        b{
                            border: 1px solid #fb7299;
                            font-weight: normal;
                            margin-left: 8px;
                        }
                    }
                    & span:nth-of-type(5){
                        font-size: 11px;
                        line-height: 18px;
                        color: #999;
                        margin-left: 8px;
                        i{
                            vertical-align: bottom;
                        }
                    }
                }
            }
        }
        &-item:hover{
            box-shadow: 10px 10px 20px hsla(203,6%,45%,.3);
        }
        &-item:hover .main-list-item-img{
            transition: .2s;
            transform: translateY(-10px);
        }
    }
    .page{
        width: 1160px;
        height: 20px;
        margin: 0 auto 55px;
        background-color: pink;
    }
}